import request from '@/utils/request'

export function getAllInvestigationPatterns(params) {
	return request({
		url: '/province/investigationManage/allInvestigationPatterns',
		method: 'get',
		params
	})
}

export function deleteInvestigationPattern(params) {
	return request({
		url: '/province/investigationManage/deleteInvestigationPattern',
		method: 'delete',
		params
	})
}

export function createInvestigationPattern(data) {
	return request({
		url: '/province/investigationManage/createInvestigationPattern',
		method: 'post',
		data
	})
}

export function modifyInvestigationPattern(data) {
	return request({
		url: '/province/investigationManage/modifyInvestigationPattern',
		method: 'put',
		data
	})
}

export function getAllInvestigationInfo(params) {
	return request({
		url: '/province/investigationManage/allInvestigationInfo',
		method: 'get',
		params
	})
}

export function deleteInvestigation(params) {
	return request({
		url: '/province/investigationManage/deleteInvestigation',
		method: 'delete',
		params
	})
}

export function createInvestigation(data) {
	return request({
		url: '/province/investigationManage/createInvestigation',
		method: 'post',
		data
	})
}

export function modifyInvestigation(data) {
	return request({
		url: '/province/investigationManage/modifyInvestigation',
		method: 'put',
		data
	})
}

export function uploadCollectedData(data) {
	return request({
		url: '/province/investigationManage/uploadCollectedData',
		method: 'post',
		data
	})
}
